home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / DEF / Convert / Notes / note-to-freq
Text File  |  1998-10-23  |  350b  |  16 lines

  1. note-to-freq note octave
  2.  
  3. Converts note in an octave into frequency. c 0 corresponds frequency 1. Use this function to generate values to be used to determine oscillators frequencies. See freq-to-note.
  4.  
  5. (note-to-freq 'c# 0)
  6. --> 1.0594630943592953
  7.  
  8. (note-to-freq 'c 1)
  9. --> 2.0
  10.  
  11. (note-to-freq 'c 2)
  12. --> 4.0
  13.  
  14. (note-to-freq 'g& 7)
  15. --> 181.01933598375618
  16.